<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="/WEB-INF/templates/configuration.jsp" %>
<%@page contentType="text/html" pageEncoding="windows-1252"%>

<h2>${pageTitle}</h2>
<c:if test="${not empty foutMelding}">
    <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
    <p>${foutMelding}</p>
</c:if>
<form id="wijzigenPasswoord" action="user_changepw" method="post">
    <p>
        <!-- Het id wordt meegestuurd, om te bepalen welke gebruiker je gaat wijzigen -->
        <input type="hidden" name="id" id="id" value="${user.userId}"></input>
    <table border="0">
        <tr>
            <td style="width: 350px"><label for="error123"><font color="#FF0000" size="2">${oldpwError eq ""? "":oldpwError}</font></label></td>
        </tr>
        <tr>
            <td><label for="passwordOld">Old Password</label></td>
            <td><input type="password" id="passwordOld" name="passwordOld" value=""></input></td>
        </tr>
        <tr>
            <td style="width: 350px"><label for="error123"><font color="#FF0000" size="2">${pwlengthError eq ""? "":pwlengthError}</font></label></td>
        </tr>
        <tr>
            <td><label for="passwordNew">New Password</label></td>
            <td><input type="password" id="passwordNew" name="passwordNew" value=""></input></td>
        </tr>
        <tr>
            <td style="width: 350px"><label for="error123"><font color="#FF0000" size="2">${newpwError eq ""? "":newpwError}</font></label></td>
        </tr>
        <tr>
            <td><label for="password">Repeat New Password</label></td>
            <td><input type="password" id="password-repeat" name="password-repeat" value=""></input></td>
        </tr>
    </table>
</p>
<p>
    <input class="submit" type="submit" href="user_changepw?id=${user.userId}" value="${buttonTitle}">
</p>
</form>